package com.wish.wishfinancial_service.service.feignservice;

import dto.houseForeclosureDto.RequestSearchSfsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import vo.ResultEntity;

@FeignClient(name = "wish-house-foreclosure",fallbackFactory = HouseServiceFeignError.class)
public interface HouseServiceFeign {

    @RequestMapping("/searchSfContractList_xy")
    public ResultEntity searchSfContractListXy(@RequestBody RequestSearchSfsDto requestSearchSfsDto);

    /**
     * @Description: 生产编号
     * @param tpye 编号类型
     * @return 编号
     */
    @RequestMapping("/getSerialNumber")
    public String getSerialNumber(String tpye);
}
